<% title_tag [params[:q], t('common.search_result')].join(' · ') %>

<div class="search-results panel panel-default">
  <div class="panel-heading clearfix">
    关于 “<%= params[:q] %>” 的搜索结果, 共 <%= @result.results.total %> 条
  </div>

  <div class="panel-body">
    <% @result.records.each_with_hit do |item, hit| %>
      <%= render partial: item.class.name.downcase, locals: { item: item, hit: hit } %>
    <% end %>
  </div>

  <div class="panel-footer clearfix">
    <%= will_paginate @result %>
  </div>
</div>
